<?php

namespace app\api\validate;

use think\Validate;

class WithdrawValidate extends Validate
{
    protected $rule = [
        'page' => 'integer',
        'limit' => 'integer',
        'money' => 'require|float',
        'password' => 'require',
        'type' => 'require'
    ];

    protected $message = [
        'page.integer' => '页码格式错误',
        'limit.integer' => '条数格式错误',
        'money.require' => '提现金额不能为空',
        'money.float' => '提现金额参数格式错误',
        'password.require' => '支付密码不能为空',
        'type' => '提现类型不能为空'
    ];

    protected $scene = [
        'getList' => ['page','limit'],
        'withdraw' => ['money','password','type']
    ];
}
